home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Pascal / Snippets / PNL Libraries / Libraries / GIF / gifsave.h < prev    next >
Text File  |  1995-07-20  |  571b  |  37 lines

  1. #ifndef GIFSAVE_H
  2. #define GIFSAVE_H
  3.  
  4.  
  5.  
  6. enum GIF_Code {
  7.     GIF_OK,
  8.     GIF_ERRCREATE,
  9.     GIF_ERRWRITE,
  10.     GIF_OUTMEM
  11. };
  12.  
  13.  
  14.  
  15. pascal short  GIF_Create(
  16.          FSSpec *filename,
  17.          short width, short height,
  18.          short numcolors, short colorres
  19.      );
  20.  
  21. pascal void GIF_SetColor(
  22.          short colornum,
  23.          short red, short green, short blue
  24.      );
  25.  
  26. pascal short  GIF_CompressImage(
  27.          short left, short top,
  28.          short width, short height,
  29.          pascal short (*getpixel)(short x, short y)
  30.      );
  31.  
  32. pascal short  GIF_Close(void);
  33.  
  34.  
  35.  
  36. #endif
  37.